﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SubFactorPage.aspx.cs" Inherits="Basic4Net.OAWeb.Module_Base.SubFactorPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../App_Themes/ui-lightness/main.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="../Scripts/common.js"></script>
    <script type="text/javascript" src="../Scripts/Util.js"></script>
    <script language="javascript" type="text/javascript">
        function SubFactorAdd() {
            var btn = document.getElementById("btnBind");
            btn.click();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="mainWarp">
        <div class="pageBody">
        <div>
        <table style="width: 100%;">
            <tr>
                <td colspan="5" style="height:10px">
                </td>
            </tr>
            <tr>
                <td colspan="5" align="left">
                    
                <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
                </asp:ScriptManager>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                               <asp:Repeater ID="rpt_SubFactor" runat="server" >
                                <HeaderTemplate>
                                <table id="settingTable" style="width:60%" class="useList1" border="0" cellpadding="0" cellspacing="1">
                                    <tr  class="tableTitle">
                                        <th>
                                            科目名称
                                        </th>
                                        <th>
                                            毕业班系数
                                        </th>
                                        <th>
                                            非毕业班系数
                                        </th>
                                    </tr>
                                </HeaderTemplate>
                            <ItemTemplate>
                            <tr >
                                <td style="text-align:left">
                                    <%# DataBinder.Eval(Container.DataItem, "CauseName")%>
                                    <asp:HiddenField ID="hdf_RID" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "RID")%>' />
                                    <asp:HiddenField ID="hdf_SubjectID" runat="server" value='<%# DataBinder.Eval(Container.DataItem, "SubjectID")%>' />
                                </td>
                                <td >
                                    <asp:TextBox ID="txt_Factor0" style="text-align:right" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Factor0") %>'></asp:TextBox>
                                    <asp:regularexpressionvalidator id="REV_price" runat="server" ErrorMessage="RegularExpressionValidator" Display="Dynamic"
											ControlToValidate="txt_Factor0" ValidationExpression="(\d+\.?\d*)">非法格式！</asp:regularexpressionvalidator>
										<asp:requiredfieldvalidator id="RFV_price" runat="server" ErrorMessage="RequiredFieldValidator" Display="Dynamic"
											ControlToValidate="txt_Factor0">不能为空！</asp:requiredfieldvalidator>
                                </td>
                                <td >
                                    <asp:TextBox ID="txt_Factor1" style="text-align:right" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Factor1") %>'></asp:TextBox>
                                    <asp:regularexpressionvalidator id="Regularexpressionvalidator1" runat="server" ErrorMessage="RegularExpressionValidator" Display="Dynamic"
											ControlToValidate="txt_Factor1" ValidationExpression="(\d+\.?\d*)">非法格式！</asp:regularexpressionvalidator>
										<asp:requiredfieldvalidator id="Requiredfieldvalidator1" runat="server" ErrorMessage="RequiredFieldValidator" Display="Dynamic"
											ControlToValidate="txt_Factor1">不能为空！</asp:requiredfieldvalidator>
                                </td>
                            </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                            </asp:Repeater>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="btnBind" EventName="Click" />
                    </Triggers>
                </asp:UpdatePanel>
                    
                </td>
            </tr>
            <tr>
                <td colspan="5" align="left" style="height:50px">
                    <input id="btn_Submit" onclick="SubFactorAdd()" type="button" value="确定" class="commonBut" />
                </td>
            </tr>
        </table>
    </div>
            <div style="display: none;">
                <asp:Button ID="btnBind" runat="server" OnClick="btnBind_Click" Text="btnBind" />
            </div>
    </div>
    </div>
    </form>
</body>
</html>
